package cn.tedu.eguser1.pojo.dto;
import jakarta.validation.constraints.Pattern;
import lombok.Data;

@Data
public class UserAddParam {
    @Pattern(regexp = "^(?!.*(.)\\1{2})[a-zA-Z0-9_]{4,12}$",message = "用户名长度为4-12位，且不允许连续出现3个及以上相同字符")
    private String username;
    private String password;
    private String nickname;

}
